<template>
  <div>
    <fanDialog ref="fandialogshow"></fanDialog>
  </div>
</template>

<script>
import fanDialog from './fanDialog.vue';
export default {
  name: "ThreeDialog",
  props: {
    modelNameProp: String // 父组件传过来的数据
  },
  components: {
    fanDialog
  },
  data() {
    return {
      modelName: "", // 当前显示的数据
    };
  },
  watch: {
    modelNameProp(newVal) {
      // 父组件异步传值时更新
      this.modelName = newVal;
    }
  },
  methods: {
    openThreeDialog(deviceObj) {
      console.log("threeDdialog666666666666666666", deviceObj);
      this.$refs.fandialogshow.openDialog(deviceObj);
    }
  }
};
</script>

<style scoped></style>
